<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>类型管理</title>
    <hdjs />
    <js file= '__PUBLIC__/js/mod.base.js,__PUBLIC__/js/mod.model.js' />
    <css file= '__PUBLIC__/css/mod.base.css' />
</head>
<body>
    <div class="hd-menu-list">
        <ul>
            <li class="active">
                <a href="javascript:;">类型列表</a>
            </li>
            <li>
                <a href="{:U('Type/add')}">添加类型</a>
            </li>
            <li>
                <a href="{:U('Type/update_cache')}" >更新缓存</a>
            </li>
        </ul>
    </div>
    <div class="content">
        <table class="hd-table hd-table-list hd-form">
            <thead>
                <tr>
                    <td class="hd-w30"typeid</td>
                    <td>类型名称</td>
                    <td class="hd-w150">操作</td>
                </tr>
            </thead>
            <tbody>
            	<if condition='$type'>
                <foreach name='type' item='v'>
                <tr>
                    <td>{$v.typeid}</td>
                   
                    <td>{$v.typename}</td>
                    <td>
                        <a href="{:U('Attr/index',array('typeid'=>$v['typeid']))}">查看属性</a>
                        |
                        <a href="{:U('Type/edit',array('typeid'=>$v['typeid']))}">修改</a>
                        |
                        <a href="javascript:;" onclick="del_modal('{:U('Type/del',array('typeid'=>$v['typeid']))}')">删除</a>
                    </td>
                </tr>
                </foreach>
                <else />
                <tr>
                	<td colspan="3">没有找到符合条件的记录</td>
                </tr>
            </if>
            </tbody>
        </table>
    </div>
    

</body>
</html>